package com.xqit.ydzhkt.api;

import com.xqit.ydzhkt.common.response.HttpResult;
import com.xqit.ydzhkt.entity.Payment;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Janus on 2020/6/1
 *
 * 缴费项目API
 */
@Api(tags = "缴费模块",description = "PaymentController - 学生在线缴费")
public interface PaymentApi {

    //需要缴费的项目
    @ApiOperation(value = "缴费项目",notes = "返回当前用户需要缴费的项目")
    @ApiImplicitParam(paramType = "query",name = "xh",value = "学生学号",required = true, dataType = "String")
    public HttpResult paymentProject(@RequestParam("xh") String xh);

    //微信支付
    @ApiOperation(value = "微信支付",notes = "微信支付")
    @ApiImplicitParam(paramType = "body",name = "payment",value = "缴费项目",required = true)
    public HttpResult wxPay(@RequestBody Payment payment);

    //缴费记录
    @ApiOperation(value = "缴费记录",notes = "返回当前用户缴费记录")
    @ApiImplicitParam(paramType = "query",name = "xh",value = "学生学号",required = true, dataType = "String")
    public HttpResult paymentRecord(@RequestParam("xh") String xh);
}
